<div class="btn-group">
	<a class='btn btn-primary'> <i class="fa"></i> <?php echo $title; ?>-认领管理 </a>
</div>

<?php include_once 'inc_modules_path.php'; ?>
<?php //include_once 'inc_ctype_index.php'; ?>

<div class="clearfix"><p></p></div>
<?php if($this->cid==13){?>
<?php echo form_open(site_url('claim/index'),array('method'=>'get')); ?>
<input type='hidden' name='c' value='<?php echo $this->cid; ?>'>
认领人姓名
<input type='text' name='uname' value='<?php if(isset($_GET['uname']) and $_GET['uname']){ echo $_GET['uname']; } ?>'>
<input type='hidden' name='need_id' value='<?php if(isset($_GET['need_id']) and $_GET['need_id']){ echo $_GET['need_id']; } ?>'>
<input class='btn'  type='submit' value='查询' style="margin-top: -12px;">
<?php echo form_close(); ?>
<?php }?>

<div class="boxed">
	<div class="boxed-inner seamless">

<table class="table table-striped table-hover select-list">
	<thead>
		<tr>
			<th>姓名</th>
            <?php if($this->cid==13){?>
			<th>报价</th>
			<th>认领时间</th>
			<th>认领次数</th>
			<th>评价分数</th>
			<th>是否指派</th>
            <?php }elseif($this->cid==14){?>
            <th>报名时间</th>
            <?php }?>
		</tr>
	</thead>
	<tbody class="sort-list">
    <?php $claim_status=array(0=>'未指派',1=>'已指派');?>
    <?php foreach ($list as $v):?>
		<tr data-id="<?php echo $v['id'] ?>" data-sort="<?php echo $v['sort_id'] ?>">
            <td> <?php echo $v['uname']; ?> </td>
            <?php if($this->cid==13){?>
            <td> <?php echo $v['money']; ?> </td>
            <td> <?php echo date("Y/m/d H:i:s",$v['created_time']); ?> </td>
            <td> <?php echo $v['claims']; ?> </td>
            <td> <?php echo $v['star']; ?> </td>
            <td> <?php echo $claim_status[$v['is_assign']]; ?> </td>
            <?php }elseif($this->cid==14){?>
            <td> <?php echo date("Y/m/d H:i:s",$v['created_time']); ?> </td>
            <?php }?>
		</tr>
		<?php endforeach;?>
	</tbody>
</table>

	</div>
</div>

<?php echo $pages; ?>

<script>
require(['adminer/js/ui'],function(ui){

});
</script>
